package com.deyun.charpt01.async

import java.util.concurrent.Executors

private val pool by lazy {
    Executors.newCachedThreadPool()
}

class AsyncTask(val block:()->Unit)
{
    fun execute()= pool.execute(block)
}